gadgetgetvalue$()
Description:
Get the value of a gadget.
Syntax:
Required syntax: |
| value/value#/value$ = gadgetgetvalue$( gadgethandle )
|
Parameters:
Required parameters |
Description |
| gadgethandle | A handle to the gadget you wish get the value from |
Returns:
The actual value of the specified gadget, either as an integer, real or string variable ( see table below )
Following table shows, what the different gadget types return:
| Gadget type | What you alter | Variable type |
| gadgettext() | The text in the gadget | String ($) |
| gadgetbutton() | The displayed text in the button | String ($) |
| gadgettextbox() | The text, the gadget contains | String ($) |
| gadgetfloat() | The decimal number, the gadget contains | Real (#) |
| gadgetinteger() | The number, the gadget contains | Integer |
| gadgethscroller() | The horizontal position of scroller´s slider, in the range: min_value#....max_value# inclusive, with step increment | Real (#) |
| gadgetvscroller() | The vertical position of scroller´s slider, in the range: min_value#....max_value# inclusive, with step increment | Real (#) |
| gadgetcycle() | The gadget´s selected option. To retrieve the text from the
option selected, use: |
Integer |
| gadgetimage() | The frame in the gadget´s image | Integer |
| gadgettexteditor() | The whole text message including the character: "|" , for a new line. | String ($) |
| gadgettextselection() | The gadget´s selected option To retrieve the text from the
option selected, use: |
Integer |
| gadgetcheckbox() | State of checkbox, off = 0 , on = 1 | Integer |
Example: